package com.chinasoft.tw.service.zhj;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class ZhengHaiJin implements TrueWord {
    String name;
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public ZhengHaiJin() {
        this.name = "郑海金";
        wordList.add("道生一");
        wordList.add("DecemberSnowy");
        wordList.add("一生二");
    }

    @Override
    public Info getTrueWord() {
        int index = random.nextInt(wordList.size());
        Info info = new Info(name, wordList.get(index));
        return info;
    }
}
